import React,{ Component } from 'react'
import { Button } from 'antd-mobile'

export default class Proxy extends Component{

    getData = () =>{
        fetch('/ajax/movieOnInfoList?token=')
        .then(data  => data.json())
        .then(res => console.log('res',res))
        .catch(err => console.log(err))
    }

    render(){
        return(
            <div>
                <Button type="primary" onClick={ this.getData  }>反向代理</Button>
            </div>
        )
    }
}